<?php 
    require '../fpdf17/fpdf.php';
    require '../inc/configuration.php';
    require '../inc/connexion_bdd.php';
    
    $pdf = new FPDF();
    
    $sql= "SELECT * FROM contacts";
    $envoi_requete = mysqli_query($connexion_serveur, $sql);
    
    $pdf->AddPage();
    $pdf->SetFont('Arial','B',16);
    while ($data=  mysqli_fetch_assoc($envoi_requete)){
        $pdf->Cell(40,10, $data['nom'].''. $data['prenom']);
        $pdf->Ln(5);
        
    }
    
    $pdf->Output();
    